let  model  = require("../model/typeTable");

module.exports = {
        query:(params)=>{
            return  model.find(params);
        },
        add:(data)=>{
            return model.insertMany([data]);
        },
        insertMany:(data)=>{
            return model.insertMany(data);
        },
        delMany:(data)=>{
            return  model.deleteMany(data)
        }

}